﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class UserControl_InfoSearch : System.Web.UI.UserControl
{
    static string infoType = "";   　　　　//信息类型
    Operation operation = new Operation();


    protected void ImageButton_Click(object sender, ImageClickEventArgs e)
    {
        Session["key"] = txtKey.Text;
        if (Page.Title.CompareTo("科技成果超市")==0||Page.Title.CompareTo("科技成果超市---详细信息") == 0 || Page.Title.IndexOf("用户") != -1)                 //主页中查询
        {
            infoType = "技术供应信息";
            Response.Redirect("~/ShowPage/webSearchAll.aspx");
            return;
        }
        else
        {
            Response.Redirect(Request.Url.ToString());
        }
    }
}
